const Base = require('./base');

module.exports = class extends Base {
    constructor(ctx){
        super(ctx);
        this.url = 'http://sichuanair-dev.tianjishuju.com/static/big_screen/index.production.html?id=1d1528b0-3d64-11e8-bff8-bb2feb35c02e';
    }

    /**
     * @param string url 改变的url
     */
    changeAction(){
        // this.emit('getIframeUrl', this.wsData);
        this.broadcast('changeUrl', this.wsData);
    }

    /**
     *  @desc webSocket 服务
     *
     *
     */
    openAction() {
        this.emit('opend', this.url)
    }

    /**
     *  @desc webSocket 服务
     *
     *
     */
    closeAction(){

    }
};